<%@ page language="java" pageEncoding="UTF-8"%>
<%@page import="com.usernet.product.utils.StringUtils"%>
<%@page import="com.usernet.product.tools.JSONTools"%>
<%@ taglib uri="http://struts.apache.org/tags-logic" prefix="logic"%>
<%@ taglib uri="http://struts.apache.org/tags-bean" prefix="bean"%>
<%@ taglib uri="http://www.opensymphony.com/oscache" prefix="cache"%>
<script src="http://wandoujia.com/api/wdapi.js" type="text/javascript"></script>
<div class="boxB btmMar10">
      <div class="boxB-top">
        <div class="boxTitleA"><strong>${software.name }</strong>&nbsp;</div>
        <div class="boxMoreA"></div>
      </div>
      <div class="boxB-mid">
        <div class="appImg"><img src="<logic:empty name="software" property="icon">resources/images/icon_empty.png</logic:empty><logic:notEmpty name="software" property="icon"><bean:message key="base"/>upload/icon/${software.icon }</logic:notEmpty>" alt="${software.name }" />	</div>
        <div class="appPar">
          <table class="appParTable">
          	<tr>
              <th style="width:70px;">软件名称：</th>
              <td colspan="5">${software.name }</td>
            </tr>
            <tr>
              <th>推荐指数：</th>
              <td width="90px"><bean:define id="avg" name="software" property="avg" type="java.lang.Integer" />
	          <span class="appGrade"><%=StringUtils.avgString1(avg) %><%=StringUtils.avgString2(5-avg) %></span></td>
          	  <th>发布时间：</th>
	          <td width="90px"><bean:write name="software" property="time" format="yyyy-MM-dd"/></td>
	          <th style="width:70px;">软件类型：</th>
              <td>${type.name }</td>
            </tr>
            <tr>
              <th>软件属性：</th>
              <td><logic:equal value="0" name="software" property="share">免费版</logic:equal><logic:equal value="1" name="software" property="share">商业版</logic:equal></td>
              <th>软件大小：</th>
              <td>${software.size }</td>
              <th>软件版本：</th>
              <td>${software.version }</td>
            </tr>
  			<tr>
              <th>下载次数：</th>
              <td><span id="downCount">${software.count }</span>次下载</td>
              <th>软件出处：</th>
              <td colspan="3">${software.develope }</td>
            </tr>
          </table>
          <div class="downArea">
         	<div class="downBtnMOLO"><a title="一键快速安装到手机" href="<bean:message key="base"/>upload/software/${software.download }" onclick="return wdapi_apkdl_m(this, 'hot_api');"><span class="feedPole1"></span></a></div>
            <div class="downBtn"><a target="_blank" href="down_${software.id }.html"><span class="feedPole1"></span></a></div>
         	</div>
          <div>
          </div>
        </div>
      </div>
    </div>
    <div class="boxB btmMar10">
       <div class="boxC-top">
        <ul class="optTab" id="navOpt3">
          <li class="foucs"><a href="javascript:;" onmouseover="setTab(3,0,2)"><span>应用详情</span></a></li>
          <li><a href="javascript:;" onmouseover="setTab(3,1,2)"><span>应用截图</span></a></li>
          <li style="display: none;"><a href="javascript:;" onmouseover="setTab(3,2,2)"><span>用户评论</span></a></li>
        </ul>
      </div>
      <div class="boxB-mid">
      <div class="homeMust" id="nav20" >
	      <div class="paraSty">
	      &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<bean:define id="remark" name="software" property="remark" type="java.lang.String" /><%=JSONTools.stringToHtml(remark) %>
		  </div>
      </div>
   	  <div class="homeMust" id="nav21" style="display:none;">
               <div class="lastUpdate2">
                   <ul id="carousel_ul">
                   		<logic:present name="photoList">
                   		<logic:iterate id="item" name="photoList"><li><img src="<bean:message key="base"/>upload/photo/${item.photo }" alt="" /></li></logic:iterate>
                   		</logic:present>
                   </ul>
               </div>
      </div>
      <div class="homeMust" id="nav22" style="display:none;">
		 <div class="paraSty">
	     <bean:define id="remark" name="software" property="remark" type="java.lang.String" /><%=JSONTools.stringToHtml(remark) %>
		 </div>
      </div>
</div>
</div>
